package cn.bnjy.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * ⁬邀请关系表
 * </p>
 *
 * @author chavin
 * @since 2018-12-09
 */
@Data
@NoArgsConstructor
public class Invite implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    private int id;
    private String inviteOpenId;            // 邀请人openId
    private String newComerOpenId;          // 被邀请人openId
    private Date createTime;        // 创建时间

    public Invite(String inviteOpenId, String newComerOpenId) {
        this.inviteOpenId = inviteOpenId;
        this.newComerOpenId = newComerOpenId;
    }
}
